package com.starinside.wp.domain.course;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.starinside.wp.domain.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 课程主题_
 * 例如 一年级语文  第一课到第五课  讲的主题 是 《好好学习，天天向上》
 */
@Entity
@Table(name = "tc_course_topic")
@EqualsAndHashCode(callSuper = true)
@Data
public class VendorCourseTopic extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonIgnore
    private Boolean deleted = false;

    @Column(name = "name")
    private String name;

    @Column(name = "desc")
    private String desc;

    @Column(name = "imageURLs")
    private String imageURLs;

    @JsonIgnore
    @Column(name = "status")
    private Integer status = 0;

    @JsonIgnore
    @Column(name = "delete")
    private Boolean delete = Boolean.FALSE;

    @JsonIgnore
    @Column(name = "vendor_id", nullable = false)
    private String vendorId;

    @JsonIgnore
    @Column(columnDefinition = "varchar(32)   COMMENT '课程包ID' ")
    private String coursePackageId;

    @Column(columnDefinition = "varchar(32)   COMMENT '详情1' ")
    private String details1;

    @Column(columnDefinition = "varchar(32)   COMMENT '详情2' ")
    private String details2;

    @Column(columnDefinition = "varchar(32)   COMMENT '详情3' ")
    private String details3;


}